package week1;

public class Ex6 {
    public static void main(String[] args) {
        int sum1 = 0, sum2 = 0;
        for (int i = 1; i <= 100; ++i){
            sum1 += i;
            sum2 += i * i;
        }
        System.out.println(Math.abs(sum1 * sum1 - sum2));
    }
}
